﻿using System;

namespace Yz.Base
{
    public class BaseParaCache : ParaModel
    {
        public int DbNum { get; set; }
        public string Key { get; set; }
    }
    public class ParaCache : BaseParaCache
    {
        public TimeSpan Expiry { get; set; }
        public DateTimeOffset Expiration { get; set; }
    }
    public class ParamCache : ParaCache
    {
        public bool Update { get; set; }
    }
    public class ParaCacheMq : ParaModel
    {
        /// <summary>
        /// redis的dbNum
        /// </summary>
        public int DbNum { get; set; }
        /// <summary>
        /// 频道
        /// </summary>
        public string Channel { get; set; }
    }
}
